﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
using ZFSDomain.Interface.Base;
using ZFSDomain.Interface.User;
using ZFSDomain.Service;
using ZFSDomain.ViewModel;
using ZFSDomain.ViewModel.Sign;
using ZFSDomain.ViewModel.Step;

namespace ZFSDomain
{
    /// <summary>
    /// App.xaml 的交互逻辑
    /// </summary>
    public partial class App : Application
    {

        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            //IOC接口注册
            BootStrapper.Initialize();

            //默认样式
            new SkinViewModel().ApplyDefault();

            //登陆窗口
            var Dialog = ServiceProvider.Instance.Get<ILoginDialog>();
            Dialog.BindViewModel(new LoginViewModel());
            Dialog.ShowDialog();
        }

    }
}
